package com.home.qh.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.home.qh.dao.NosDao;
import com.home.qh.model.Nos;
import com.home.qh.service.NosManager;

/**
 * Implementation of RoleManager interface.
 *
 * @author <a href="mailto:dan@getrolling.com">Dan Kibler</a>
 */
@Service("nosManager")
public class NosManagerImpl extends GenericManagerImpl<Nos, Long> implements NosManager {
	NosDao nosDao;

    @Autowired
    public NosManagerImpl(NosDao nosDao) {
        super(nosDao);
        this.nosDao = nosDao;
    }

	public List<Nos> getNosByCodeAndName(String nosCode,
			String nosName) {
		return nosDao.getNosByCodeAndName(nosCode, nosName);
	}

	public List<Nos> getNosByNos(Nos nos, String sort, boolean desc, int startResult, int maxResults) {
		return nosDao.getNosByNos(nos, sort, desc, startResult, maxResults);
	}

}